
import java.util.Random;
public class Main {
public static void main(String[] args) {
	EventSource eventSource=new  EventSource();
	eventSource.addlistener(new ListenerFire());
	eventSource.addlistener(new Loglistener());
while(true) {
	eventSource.changeTempeure((new Random()).nextDouble() * 60);
	try{
		Thread.sleep(1000);
	}catch(InterruptedException E){
		E.printStackTrace();
	}
}
}

}
